package com.example.sfm.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 管理员表
 * </p>
 *
 * @author sfm
 * @since 2025-03-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("admin")
@Schema(name="Admin对象", description="管理员表")
public class Admin implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "管理员ID，主键")
    @TableId(value = "admin_id", type = IdType.AUTO)
    private Long adminId;

    @Schema(description = "管理员用户名")
    private String username;

    @Schema(description = "管理员密码（加密存储）")
    private String password;

    @Schema(description = "账号状态：1-启用，0-禁用")
    private Integer status;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;


    public static final Integer NORMAL = 1;
    public static final Integer DISABLE = 0;

}
